import "@/uni_modules/uni-scss/variables.scss";
import { createSSRApp } from "vue";
import App from "./App.vue";
import * as Pinia from "pinia";
import "@/styles/common.less";
import "@/icons/icon/iconfont.css";
import Button from "@/wxcomponents/lib/Button";
import NavBar from "@/components/NavBar/index.vue";
import collectApp from "@/components/collectApp/index.vue";
import FollowGzh from "@/components/FollowGzh.vue";
import Loading from "@/components/Loading/index.vue";
import share from "@/utils/share.js";
import myButton from "@/components/myButton/index.vue";
import myDrawButton from "@/components/myDrawButton.vue";
import ExpireVipModal from "@/components/modal/ExpireVipModal.vue";
import SelectBgI from "@/components/SelectBgI";
import quickJump from "@/components/quickJump/index.vue";
import myBindPhoneNumber from "@/components/my-bindPhoneNumber/index.vue";
import Tabbar from "@/components/Tabbar.vue";
// import mpHtml from "mp-html/dist/uni-app/components/mp-html/mp-html";

export function createApp() {
  const app = createSSRApp(App);
  app.use(Pinia.createPinia());
  app.mixin(share);
  app.component("A-Button", Button);
  app.component("NavBar", NavBar);
  app.component("collectApp", collectApp);
  app.component("FollowGzh", FollowGzh);
  app.component("Loading", Loading);
  app.component("myButton", myButton);
  app.component("myDrawButton", myDrawButton);
  app.component("ExpireVipModal", ExpireVipModal);
  app.component("SelectBgI", SelectBgI);
  app.component("quickJump", quickJump);
  app.component("myBindPhoneNumber", myBindPhoneNumber);
  app.component("Tabbar", Tabbar);
  // app.component("mpHtml", mpHtml);

  return {
    app,
    Pinia,
  };
}
